home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Disconnect
- BorderStyle = 4 'Fixed ToolWindow
- Caption = "Disconnect FTP Server"
- ClientHeight = 2175
- ClientLeft = 1140
- ClientTop = 1515
- ClientWidth = 5280
- Height = 2580
- Icon = "Discon.frx":0000
- Left = 1080
- LinkTopic = "Form1"
- LockControls = -1 'True
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2175
- ScaleWidth = 5280
- ShowInTaskbar = 0 'False
- Top = 1170
- Width = 5400
- Begin VB.CommandButton cmdCancel
- Cancel = -1 'True
- Caption = "Cancel"
- Height = 345
- Left = 4005
- TabIndex = 3
- Top = 630
- Width = 1125
- End
- Begin VB.CommandButton cmdOK
- Caption = "OK"
- Default = -1 'True
- Height = 345
- Left = 4005
- TabIndex = 2
- Top = 180
- Width = 1125
- End
- Begin ComctlLib.ListView Servers
- Height = 1470
- Left = 180
- TabIndex = 1
- Top = 510
- Width = 3645
- _Version = 65536
- _ExtentX = 6429
- _ExtentY = 2593
- _StockProps = 205
- ForeColor = -2147483640
- BackColor = -2147483643
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Appearance = 1
- HideColumnHeaders= -1 'True
- HideSelection = 0 'False
- Icons = ""
- LabelEdit = 1
- SmallIcons = "imgAddresses"
- View = 3
- NumItems = 1
- i1 = "Discon.frx":014A
- End
- Begin ComctlLib.ImageList imgAddresses
- Left = 4155
- Top = 1230
- _Version = 65536
- _ExtentX = 1005
- _ExtentY = 1005
- _StockProps = 1
- BackColor = -2147483643
- ImageWidth = 16
- ImageHeight = 16
- MaskColor = 12632256
- NumImages = 1
- i1 = "Discon.frx":0218
- End
- Begin VB.Label lblGeneric
- BackStyle = 0 'Transparent
- Caption = "&Server:"
- Height = 255
- Left = 180
- TabIndex = 0
- Top = 180
- Width = 1545
- End
- Attribute VB_Name = "Disconnect"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- '<Public>---------------------------------------------
- Public PressedOK As Boolean
- Public ServersNode As Node
- Public Alias As String
- '</Public>--------------------------------------------
- Private Sub cmdCancel_Click()
- PressedOK = False
- Unload Me
- End Sub
- Private Sub cmdOK_Click()
- Alias = Servers.SelectedItem.Text
- PressedOK = True
- Unload Me
- End Sub
- Private Sub Form_Load()
- Dim WorkingNode As Node
- Dim i As Integer
- Dim NumberChildren As Integer
- NumberChildren = ServersNode.Children
- For i = 1 To NumberChildren
- If (i = 1) Then
- Set WorkingNode = ServersNode.Child
- Else
- Set WorkingNode = WorkingNode.Next
- End If
- Call Servers.ListItems.Add(, , WorkingNode.Text, , 1)
- Next
- Set WorkingNode = Nothing
- CenterForm Me
- End Sub
- Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
- If (Not (UnloadMode = vbFormCode)) Then
- PressedOK = False
- End If
- Set ServersNode = Nothing
- End Sub
- Private Sub Servers_DblClick()
- If cmdOK.Enabled Then cmdOK_Click
- End Sub
-